package vwg.na.vwm.rh.motorsdk.modelo.procesos.servicios;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;

import vwg.na.vwm.rh.motorsdk.modelo.procesos.IdeaProceso;

@Entity
@Table(name = "ide_ideaCampaign")
public class IdeIdeaCampaign implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long idIdeaCampaign;
    private IdeCampaign ideCampaign;
    private IdeaProceso ideaProceso;

    public IdeIdeaCampaign() {

    }

    @Id
    @Column
    public Long getIdIdeaCampaign() {
	return idIdeaCampaign;
    }

    public void setIdIdeaCampaign(Long idIdeaCampaign) {
	this.idIdeaCampaign = idIdeaCampaign;
    }

    @LazyCollection(LazyCollectionOption.FALSE)
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ideCampaign")
    public IdeCampaign getIdeCampaign() {
	return ideCampaign;
    }

    public void setIdeCampaign(IdeCampaign ideCampaign) {
	this.ideCampaign = ideCampaign;
    }

    @LazyCollection(LazyCollectionOption.FALSE)
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ideaProceso")
    public IdeaProceso getIdeaProceso() {
	return ideaProceso;
    }

    public void setIdeaProceso(IdeaProceso ideaProceso) {
	this.ideaProceso = ideaProceso;
    }

}
